home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / SOUND / MP3CONV / Readme < prev   
Text File  |  1998-04-15  |  4KB  |  87 lines

  1. Mpeg3Play
  2. -=-=-=-=-
  3. Ported by N. Douglas
  4.  
  5. Yearning to play some music from my PC on my Acorn, I ported one of the
  6. faster generic MPEG 1 Layer 3 readers, mpeg3play. It is so much faster than
  7. the ISO reference code that real time play is possible on a bottom end
  8. Pentium (around 75Mhz or so).
  9.  
  10. For those in the Acorn world who do not know, MPEG 1 Layer 3 is a sound
  11. compression standard enjoying a massive underground presence on the internet.
  12. It compresses CD quality data by ten times or more by removing detail not
  13. noticed by the human ear - much like JPEG removes detail not noticed by the
  14. human eye.
  15.  
  16. You can get (albeit illegally) the top 40 of most western countries at any
  17. given stage on the internet, and while I do not condone piracy, I would add
  18. that many people would not buy much of the top 40 anyway. Like software, I
  19. feel that if you find it of value, buy it. The people who make music and
  20. software have to put bread on the table just like anyone else.
  21.  
  22. Anyway, that said, enclosed here is a port of mpeg3play. Now I thought that
  23. given that WinAmp takes about 20% of my processor on my 300Mhz Pentium system
  24. that perhaps we might get non multitasking play on a 200Mhz StrongArm. Well,
  25. as I found out, that was some pipedream. It's nowhere close, even though I
  26. have enabled integer math processing and various other optimisations such as
  27. prebuilt tables.
  28.  
  29. So it's a great disappointment. RiscPC users may find it useful - on anything
  30. else it's too slow. It outputs around 50k of decompressed data per minute on
  31. an Arm7 (woeful). Because of it being suitable for only RPC users, all code
  32. will only work on RO3 or above. You can force the mpeg3play utility to work
  33. on RO2, but I'll leave that as an exercise for the user.
  34.  
  35. To use:
  36. -=-=-=-
  37. Anyway, first find an mp3 file (a test one is enclosed). Set the type to &1ad
  38. which is the Acorn defined filetype for MPEG audio data. Run !MP3Conv, the
  39. front-end I quickly hacked together and converted to C using Basic2C (soon
  40. available from Clares Micro Supplies - plug plug! ;) ). Decide if you want a
  41. multitasking conversion using the icon bar menu (it's on by default), and
  42. drag a MP3 file onto the icon bar icon. Drag the blank icon to where you want
  43. it to go. Conversion will then start assuming you have some taskwindow
  44. handler available.
  45.  
  46. Alternatively, you can go to the command line with f12 and type (assuming
  47. the test file here):
  48.  
  49. mpeg3play -v -o out.aiff please.mp3
  50.  
  51. Using either method, go have a cup of tea and after you should have around
  52. 1.2Mb of data in out.aiff in the case of the test file. Fire up something
  53. like SoundCon, set High Endian 16bit Stereo signed linear and play! You'll
  54. know what the sound is when you hear it! BTW, it should be 15.13 seconds long
  55. - it's at half CD quality (22Khz, not 44Khz).
  56.  
  57. Note that even if the mp3 data is encoded at 44Khz, the quality of the output
  58. from this converter is not CD quality. The use of integer math routines
  59. degrades quality somewhat (you really need double IEEE), and using double
  60. IEEE routines will slow things down even further. The sources are enclosed if
  61. you want to recompile to test this anyway (remove -DFSINGLE and DINT_MATH).
  62. You'll need Unxilib v3.7b as well.
  63.  
  64. Acknowledgements:
  65. -=-=-=-=-=-=-=-=-
  66. Thanks are due to Johan Hagman for the original modifications to the ISO
  67. reference code. All the ISO's and Johan's documentation is in the docs
  68. directory.
  69.  
  70. References:
  71. -=-=-=-=-=-
  72. As for mpeg3play (read the docs directory). In addition you may find
  73. http://www.t50.com useful for getting some mp3's. Remember they are illegal
  74. copies.
  75.  
  76. Contact:
  77. -=-=-=-=
  78. There isn't any warranty whatsoever with this code. It remains under the
  79. licence agreement for the original mpeg3play code.
  80.  
  81. However, you can contact me about mpeg3play at mpeg3play@nedprod.com. The
  82. website http://www.nedprod.com contains various bits and pieces that I do as
  83. well.
  84.  
  85. N. Douglas
  86. 15th April 1998
  87.